<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
<html>
<style type="text/css">
.top{
width:100%;

height:100px;
background:linear-gradient(to right,#5b5b5b,#3c3c3c);

position:relative;
}
.logo{
background:#ffffff;
text-align:right;
line-height:50px;
width:250px;
height:100px;
border-bottom:1px solid #e7e7e7;
float:left;
}
.lg_a{
width:15%;
height:50px;
display:inline-block;
float:right;
}
.lg_a a{
text-align:right;
line-height:50px;
color: #ffffff;
}
.lg_a a:hover{
background-color: burlywood;
}
.nav {
    height: 0;
    width:65%;
    margin:30 auto;
    background:#7b7b7b;
    text-align: center;
    display:inline-block !important; 
    display:inline; 
    
}

.nav ul {
   list-style-type:none;
	margin:0;
	padding:0;
	overflow:hidden;
}

.nav ul li {
   float:left;
}

.nav a {
  display:block;
  width:120px;
  font-weight:bold;
  color: #ffffff;
  text-align:center;
  padding:4px;
  text-decoration:none;
  text-transform:uppercase;
  margin-left: 1px;
  font-family:"黑体";
  font-size:22px;

}
.nav a:hover {
    background-color:#7b7b7b;

}
</style>
<div class="top">
  <div class="logo">
<a href="${pageContext.request.contextPath}/index.jsp">  <img src="${pageContext.request.contextPath}/img/logo.png"  height="100px" width="250px"></a>
  </div>
 <div class="nav">
        <ul>
            <li><a href="${pageContext.request.contextPath}/news.jsp">新闻资讯</a></li>
            <li><a href="${pageContext.request.contextPath}/lt/showlt.action">论坛</a></li>
            <li><a href="${pageContext.request.contextPath}/search.jsp">汽车搜索</a></li>
            <li><a href="${pageContext.request.contextPath}/space.jsp">个人中心</a></li>
             
        </ul>
  </div>
  <div class="lg_a"><a 	href="login.jsp">登录</a>  <a href="register.jsp">注册</a>
  </div>
 
</div>

</html>